package com.aaa.project3;

import org.junit.Test;

public class JavaTest {
    @Test
    public void test1(){
        int [] arr ={5,4,6,2,1};
        F.sort(arr);
        for (int i = 0; i <arr.length ; i++) {
            System.out.println(arr[i]);
        }
    }
    /*最大值*/
    @Test
    public void test2(){
        int [] arr ={5,4,6,2,1};
       int b =F.Max(arr);
        System.out.println(b);
    }
    @Test
    public void test3(){
        int [] arr ={5,4,6,2,1};
       int b = F.indexOf(arr,1);
        System.out.println(b);
    }
    @Test
    public void test4(){
        int [] arr ={5,4,6,2,1};
       String b = F.pingjie(arr);
        System.out.println(b);
    }

    @Test
    public void test5(){
        int [] arr ={5,4,6,2,1};
        int [] arr1={54355321};
        String b = F.yizhi(arr,arr1);
        System.out.println(b);
    }


}
